home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
comm2
/
kms20src.lha
/
KMSXPR
/
xprglue.s
< prev
next >
Wrap
Text File
|
1994-04-21
|
2KB
|
206 lines
;XPRGlue.s
;
; DESCRIPTION:
;
; This is an interface to XPR callback functions to be handed to
; external protocol libraries.
;
; AUTHOR/DATE: Pasi Ojala 1992
;
;;;
setup macro
movem.l d2-d7/a2-a6,-(sp)
endm
push macro
move.l \1,-(sp)
endm
fix macro
ifc '\1',''
mexit
endc
ifle \1-8
addq.l #\1,sp
endc
ifgt \1-8
lea \1(sp),sp
endc
endm
restore macro
fix \1
movem.l (sp)+,d2-d7/a2-a6
rts
endm
public _a_fopen
public _c_fopen
public _a_fclose
public _c_fclose
public _a_fread
public _c_fread
public _a_fwrite
public _c_fwrite
public _a_fseek
public _c_fseek
public _a_sread
public _c_sread
public _a_swrite
public _c_swrite
public _a_update
public _c_update
public _a_chkabort
public _c_chkabort
public _a_chkmisc
public _c_chkmisc
public _a_gets
public _c_gets
public _a_setserial
public _c_setserial
public _a_ffirst
public _c_ffirst
public _a_fnext
public _c_fnext
public _a_finfo
public _c_finfo
public _a_sflush
public _c_sflush
public _a_options
public _c_options
public _a_unlink
public _c_unlink
public _a_squery
public _c_squery
_a_fopen:
setup
push a1
push a0
jsr _c_fopen
restore 8
_a_fclose:
setup
push a0
jsr _c_fclose
restore 4
_a_fread:
setup
push a1
push d1
push d0
push a0
jsr _c_fread
restore 16
_a_fwrite:
setup
push a1
push d1
push d0
push a0
jsr _c_fwrite
restore 16
_a_fseek:
setup
push d1
push d0
push a0
jsr _c_fseek
restore 12
_a_sread:
setup
push d1
push d0
push a0
jsr _c_sread
restore 12
_a_swrite:
setup
push d0
push a0
jsr _c_swrite
restore 8
_a_update:
setup
push a0
jsr _c_update
restore 4
_a_chkabort:
setup
jsr _c_chkabort
restore
_a_chkmisc:
setup
jsr _c_chkmisc
restore
_a_gets:
setup
push a1
push a0
jsr _c_gets
restore 8
_a_ffirst
setup
push a1
push a0
jsr _c_ffirst
restore 8
_a_fnext
setup
push a1
push a0
push d0
jsr _c_fnext
restore 12
_a_sflush
setup
jsr _c_sflush
restore
_a_setserial
setup
push d0
jsr _c_setserial
restore 4
_a_finfo
setup
push d0
push a0
jsr _c_finfo
restore 8
_a_options
setup
push a0
push d0
jsr _c_options
restore 8
_a_unlink
setup
push a0
jsr _c_unlink
restore 4
_a_squery
setup
jsr _c_squery
restore
end